//2009/08/15 18:55:13
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class ComboLength
{
public:
    int howLong(string moves)
    {
		int ret = 0;
		int dex;
		for(int i=0; i<moves.size(); i++)
		{
			if(i==0 || moves[i] != moves[i-1]) dex = 1;
			else dex ++;
			ret = max(ret, dex);
		}
		return ret;
    }
};
